package com.jader.beans;

import java.io.Serializable;

public class Goods_comment implements Serializable {

	private static final long serialVersionUID = 1L;

	private User user;
	private Evalute evalute;
	public Goods_comment() {
		super();
	}
	public Goods_comment(User user, Evalute evalute) {
		super();
		this.user = user;
		this.evalute = evalute;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Evalute getEvalute() {
		return evalute;
	}
	public void setEvalute(Evalute evalute) {
		this.evalute = evalute;
	}
	@Override
	public String toString() {
		return "Goods_comment [user=" + user + ", evalute=" + evalute + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((evalute == null) ? 0 : evalute.hashCode());
		result = prime * result + ((user == null) ? 0 : user.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Goods_comment other = (Goods_comment) obj;
		if (evalute == null) {
			if (other.evalute != null)
				return false;
		} else if (!evalute.equals(other.evalute))
			return false;
		return true;
	}
	
	
}
